package tech.heptagram.staff.query;

import java.util.List;

/**
 * @author wang.yuchuan
 * @date 2018/9/5
 */
public class StaffQueryBuilder {

    private StaffQuery staffQuery;

    public static StaffQueryBuilder builder() {
        StaffQueryBuilder staffQueryBuilder = new StaffQueryBuilder();
        staffQueryBuilder.staffQuery = new StaffQuery();
        return staffQueryBuilder;
    }

    public StaffQueryBuilder staffCode(String staffCode) {
        this.staffQuery.setStaffCode(staffCode);
        return this;
    }

    public StaffQueryBuilder staffName(String staffName) {
        this.staffQuery.setStaffName(staffName);
        return this;
    }

    public StaffQueryBuilder mobile(String mobile) {
        this.staffQuery.setMobile(mobile);
        return this;
    }

    public StaffQueryBuilder wxUserId(String wxUserId) {
        this.staffQuery.setWxUserId(wxUserId);
        return this;
    }

    public StaffQueryBuilder dingtalkId(String dingtalkId) {
        this.staffQuery.setDingtalkId(dingtalkId);
        return this;
    }

    public StaffQueryBuilder staffCodes(List<String> staffCodes) {
        this.staffQuery.setStaffCodes(staffCodes);
        return this;
    }

    public StaffQueryBuilder nickName(String nickName) {
        this.staffQuery.setNickName(nickName);
        return this;
    }

    public StaffQuery build() {
        return this.staffQuery;
    }
}
